#ifndef __PUBLIC_H_
#define __PUBLIC_H_

#define uchar           unsigned char
#define u8              unsigned char
#define u16             unsigned short
#define uint            unsigned int
#define u32             unsigned int

#define __REG(addr)     (*(volatile u32 *)(addr))

int c2i(char);
int hex2dec(char *);
int my_strlen(const char *);
void dump(u32, int);

#endif
